#include "getdocinfothread.h"
#include <QRunnable>
#include <QDebug>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlError>
#include <db.h>
GetDocInfoThread::GetDocInfoThread(): QRunnable()
{
    // 任务执行完毕,该对象自动销毁
    setAutoDelete(true);
}

void GetDocInfoThread::run()
{
    DB* db = DB::getInstance();
    QStringList result = db->getPersonnel("tms_user = :username");
//    emit queryFinished(result);
}
